package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class BabyAllRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Get_ConcernedPeople";

    private int babyID;

    public int getBabyID() {
        return babyID;
    }

    public void setBabyID(int babyID) {
        this.babyID = babyID;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        BabyAllRequestBody body = new BabyAllRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setBabyID(getBabyID());
        return body;
    }

    private class BabyAllRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private int babyID;

        public int getBabyID() {
            return babyID;
        }

        public void setBabyID(int babyID) {
            this.babyID = babyID;
        }

        public BabyAllRequestBody() {
            setSv(BaseRequestConfig.SV_BABY_ALL_GET);
        }
    }
}
